//
//  IndexSection.m
//  TabBar
//
//  Created by 陈德锋 on 16/4/16.
//  Copyright © 2016年 陈德锋. All rights reserved.
//

#import "IndexSection.h"
#import "IndexRow.h"

@implementation IndexSection

+ (instancetype)parsingJsonWithDictionary:(NSDictionary *)dict
{
    return [[self alloc] parsingJsonWithDictionary:dict];
}

- (instancetype)parsingJsonWithDictionary:(NSDictionary *)dict
{
    if (self == [super init]) {
        [self setValuesForKeysWithDictionary:dict];
        
        NSMutableArray * rowArr = [NSMutableArray array];
        for (NSDictionary * dic1 in self.rows) {
            IndexRow *row = [IndexRow parsingJsonWithDictionary:dic1];
            [rowArr addObject:row];
        }
        self.rows = rowArr;
    }
    return self;
}

@end
